package com.cn.组件注册FactoryBean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;

/**
 * @Auther: 代理仁
 * @Date: 2019/7/8 23:27
 * @Description:通过实现FactoryBean注册组件
 */
@Import(ProjectFactory.class)
public class ProjectConfig {
    @Bean
    public ProjectFactory projectFactory(){
        return  new ProjectFactory();
    }
}
